package com.wei.czz.common.constant;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2021-03-15 16:15:00
 * className: Constant 静态常量类
 * version: 1.0
 * description:
 */
public class Constant {

    /**
     *  升序排序（全称）
     */
    public static final String ASCENDING = "ascending";
    /**
     *  降序排序（全称）
     */
    public static final String DESCENDING = "descending";

    /**
     * 博客成为热门博客的日浏览次数
     */
    public static final Integer DAY_HOT_VIEW = 10;

    /**
     * 博客成为热门博客的月浏览次数
     */
    public static final Integer MONTH_HOT_VIEW = 100;

    /**
     * 一分钟对应的毫秒数值
     */
    public static final Integer MINUTE_NUM = 60_000;

    /**
     * 五分分钟对应的毫秒数值
     */
    public static final Integer FIVE_MINUTE_NUM = 300_000;

    /**
     * 一天对应的毫秒数值
     */
    public static final Integer ONE_DAY_NUM = 86_400_000;

    /**
     * 图片验证码占位符
     */
    public static final String IMAGE = "image";

    /**
     * 接口限流配置-默认配置键
     */
    public static final String RATE_LIMIT_DEFAULT = "default";

    /**
     * 系统使用的分隔符
     */
    public static final String SPLIT = "-";

    /**
     * 下划线
     */
    public static final Character UNDER = '_';

    /**
     * 请求限制
     */
    public static final String REQUEST_LIMIT = "request_limit";

    /**
     * 用户风控计算
     */
    public static final String USER_RISK = "user_risk";

    /**
     * http请求类对象携带的一个属性，存储正在请求的用户所用的ip地址
     */
    public static final String REQUEST_IP = "requestIp";

    /**
     * 日志链路追踪key
     */
    public static final String TRACE_ID = "traceId";

    /**
     * 日志链路追踪key
     */
    public static final String SPAN_ID = "spanId";

    /**
     * 用户默认密码
     */
    public static final String DEFAULT_PASSWORD = "123456";

    /**
     * 访问令牌
     */
    public static final String ACCESS_TOKEN = "czz-token";

    /**
     * 刷新令牌
     */
    public static final String REFRESH_TOKEN = "czz-refresh-token";

    /**
     * 用户请求渠道
     */
    public static final String REQUEST_CHANNEL = "request-channel";

    /**
     * 登录用户
     */
    public static final String SECURITY_USER = "security_user";

    /**
     * 用户主键
     */
    public static final String USER_ID = "userId";

    /**
     * 用户请求标识
     */
    public static final String CZZ_VISIT_ID = "czz-visit-id";

    /**
     * rabbitmq返回的消息主键所在字段
     */
    public static final String MESSAGE_ID_KEY = "spring_returned_message_correlation";

    /**
     * mq消息处理加锁常量
     */
    public static final String MQ_MESSAGE = "mq_message";

    /**
     * 防重复提交
     */
    public static final String RESUBMIT = "resubmit";

}
